home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / docs / gccfaq10 / readme.txt < prev    next >
Encoding:
Text File  |  1995-02-15  |  1.0 KB  |  52 lines

  1. The following files are included:
  2.  
  3. GCCFAQ10.TXT
  4. ____________
  5.  
  6. FAQ of how to access PC hardware for games under DJGPP (GNU C Compiler).
  7.  
  8. DMA.C/H
  9. _______
  10.  
  11. Example WAV player using DMA, mono and DMA channel 1 only. Currently
  12. set for IRQ 5, Port 0x220. These are set at the top of the program.
  13. No timeout included in Read/WriteDSP routines, program assumes that
  14. if DSP can be reset, it will not hang.
  15.  
  16. Interesting bug - if the interrupts are chained after a malloc > 30K
  17. program crashes on first interrupt (OS/2 + Win only). Interrupts are 
  18. now chained prior to malloc, and no crash. Can anyone explain??
  19.  
  20. gcc dma.c -lpc
  21. go32 a.out ni.wav
  22.  
  23. MODEX.C/H
  24. _________
  25.  
  26. Draws a box in Mode-X 320x200x256. Not very exciting, but you get
  27. the idea.
  28.  
  29. gcc modex.c -lpc
  30. go32 a.out
  31.  
  32. MEMORY.C
  33. ________
  34.  
  35. Prints availible physical/virtual memory.
  36.  
  37. gcc memory.c
  38. go32 a.out
  39.  
  40. VIDEO.C
  41. _______
  42.  
  43. Writes 'Hello' to the video buffer using asm.
  44.  
  45. gcc video.c
  46. go32 a.out
  47.  
  48. NI.WAV
  49. ______
  50.  
  51. Sample .WAV file which can be used with the above example.
  52.